package com.miage.m1.xml.interfaces;

import java.util.*;

import com.miage.m1.xml.project.Club;
import com.miage.m1.xml.project.Player;


public interface iPlayerRepository {
	
	/* Find the player using given id
	 * @param int idPlayer
	 * @return Player if found, else {@code null}
	 */
	Player findPlayer(int idPlayer);
	
	/* Find all player using given lastName
	 * @param String lastName
	 * @return Player[] if found, else {@code null}
	 */
	List<Player> findPlayers(String lastName);
	
	/* Find all players
	 * 
	 * @return Player[] if found, else {@code null}
	 */
	List<Player> findAll();
	
	
	/* Finds all players using given club
	 * @param Club club
	 * @return Player[] if found, else {@code null}
	 */
	List<Player> findAll(Club club);
	
	
	/* Find all players using given nationality
	 * @param String Nationality
	 * @return Player[] if found, else {@code null}
	 */
	List<Player> findAll(String nationality);
	
}
